﻿using CarPCBATest.Demo;
using CarPCBATest.Procedure;
using System.Windows;

namespace CarPCBATest
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            CRCTest.Test1();
            PcbConfigHelper.CreateSample();
            //byte[] bs = new byte[] { 0x01 };
            //var t = bs.Append((byte)0x0d);
            //bs.Append((byte)0x01);
            //bs.Append((byte)0x03);

            //byte[] byteArray = new byte[] { 1, 2, 3, 4 }; // 假设原始数组
            //byte newValue = 5; // 要追加的新元素

            //Array.Resize(ref byteArray, byteArray.Length + 1);
            //byteArray[byteArray.Length - 1] = newValue;

            //// 现在 byteArray 数组已经在末尾追加
        }
    }
}